package org.supreme.org.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author director
 * @since 2022-12-04
 */
@TableName("t_employee")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends Model<Employee> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    @TableField(exist = false)//忽略实体映射
    private String comfirmPassword;
    private Integer age;
    private Integer state;
    @TableField("department_id")
    private Long departmentId;
    @TableField("logininfo_id")
    private Long logininfoId;
    @TableField("shop_id")
    private Long shopId;


    @Override
    protected Serializable pkVal() {
        return null;
    }
}
